package com.example.myapplication;

import android.util.Log;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;

public class SimpleServer {

    public static ArrayList<Socket>socketList=new ArrayList<Socket>();
    public static void main(String[]args)throws IOException{
        ServerSocket ss=new ServerSocket(3000);
        while (true){
            Socket s=ss.accept();
            socketList.add(s);
            new Thread(new ServerThread(s)).start();

        }
    }
}
